<%= form_for([@user, @external_author]) do |f| %>
  <%= error_messages_for @external_author %>
  <fieldset>
    <legend>External Author Identity</legend>
    <dl>
      <dt><%= f.label :email %></dt>
      <dd><%= f.text_field :email %></dd>
    </dl>
  </fieldset>

  <fieldset>
    <legend>External Author Names</legend>
    <%= f.fields_for :external_author_names do |name_form| %>
      <%= render :partial => 'external_author_name', :locals => {:form => name_form} %>
    <% end %>

    <p class="navigation"><%= add_name_link(f) %></p>
  </fieldset>

  <fieldset>
    <legend>External Author Preferences</legend>
    <dl>
      <dt><%= f.label :do_not_email, ts("Don't email when stories are imported: ") %></dt>
      <dd><%= f.check_box :do_not_email %> </dd>

      <dt><%= f.label :do_not_import, ts("Don't import stories: ") %></dt>
      <dd><%= f.check_box :do_not_import %> </dd>
    </dl>
  </fieldset>
  
  <fieldset>
  	<legend><%= ts("Submit") %></legend> 
    <p class="submit">
      <%= f.submit ts("Submit") %>
    </p>
  </fieldset>

<% end %>
